import request from '@/utils/request'
//  获取作业人员列表
export function OperatorData(data: any) {
  return request({
    url: '/Base_Operator/GetPageData',
    method: 'post',
    data,
  })
}

//  获取作业人员添加与更新
export function OperatorSave(data: any) {
  return request({
    url: '/Base_Operator/Save',
    method: 'post',
    data,
  })
}

//  获取作业人员删除
export function DelOperator(data: any) {
  return request({
    url: '/Base_Operator/DelOperator',
    method: 'post',
    data,
  })
}

//  获取作业证件单列表
export function OperatorCardMasterData(data: any) {
  return request({
    url: '/JNZJ_OperatorCardMaster/GetPageData',
    method: 'post',
    data,
  })
}

//  获取作业证件单详情
export function OperatorCardMasterDetail(data: any) {
  return request({
    url: '/JNZJ_OperatorCardMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

//  获取作业证件单编辑
export function OperatorCardMasterUpdateData(data: any) {
  return request({
    url: '/JNZJ_OperatorCardMaster/UpdateData',
    method: 'post',
    data,
  })
}

//  获取作业证件单新增
export function OperatorCardMasterAddData(data: any) {
  return request({
    url: '/JNZJ_OperatorCardMaster/AddData',
    method: 'post',
    data,
  })
}

// 流程初始化
export function startflow(data: any) {
  return request({
    url: '/WF_Instance/startflow',
    method: 'post',
    data,
  })
}

// 获取审核节点
export function auditwms(data: any) {
  return request({
    url: '/WF_Instance/auditwms',
    method: 'post',
    data,
  })
}
// 作业证单审核
export function AduitOPCardData(data: any) {
  return request({
    url: '/JNZJ_OperatorCardMaster/AduitOPCardData',
    method: 'post',
    data,
  })
}

// 作业证单删除
export function OperatorCardMasterDel(data: any) {
  return request({
    url: '/JNZJ_OperatorCardMaster/DelData',
    method: 'post',
    data,
  })
}

// 特种（设备）作业台账
export function OperatorCardData(data: any) {
  return request({
    url: '/Base_OperatorCard/GetPageData',
    method: 'post',
    data,
  })
}



